package com.doodod.common.utils;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * Created by mac on 15/3/11.
 */
public class ObjectMappingCustomer extends ObjectMapper {
    public ObjectMappingCustomer(){
        super();
        this.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
        this.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES,true);
        this.configure(JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS,true);
        this.configure(JsonGenerator.Feature.QUOTE_NON_NUMERIC_NUMBERS,true);
    }
}
